import request from '@/utils/request'

// 库位视图接口
// 获取select列表接口
export const getSelectList = () => request.get('/api/warehouse/list?status=1')

// 获取子级列表
export const getList = (data) => request.get('/api/area/list', {
  params: {
    warehouseId: data.warehouseId,
    status: data.status
  }
})

// 获取storageView接口
export const getView = (id) => request.get(`/api/area/overview/${id}`)

// 获取小方块接口
export const getDiv = (id) => request.get('/api/location/listDetail', {
  params: {
    areaId: id
  }
})
// 筛选接口
export const search = (name) => request.get(`/api/area/list?warehouseId=798976929725153313&like_name=${name}&status=1`)
